<?php

/**
 * This is the model class for table "semester".
*/
class Semester extends SemesterBase
{
	/**
	 * Returns the static model of the specified AR class.
	 * @return Semester the static model class
	 */
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}

	/**
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			'id' => 'ID',
			'name' => 'Name',
			'summary_value' => 'Summary Value',
			'education_id' => 'Education',
			'summary_label' => 'Summary Lable',
		);
	}

	/**
	 * Retrieves a list of models based on the current search/filter conditions.
	 * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
	 */
	public function search()
	{
		// Warning: Please modify the following code to remove attributes that
		// should not be searched.

		$criteria=new CDbCriteria;

		$criteria->compare('id',$this->id);
		$criteria->compare('name',$this->name,true);
		$criteria->compare('summary_value',$this->summary_value,true);
		$criteria->compare('summary_label',$this->summary_lable,true);
		$criteria->compare('education_id',$this->education_id);

		return new CActiveDataProvider($this, array(
			'criteria'=>$criteria,
		));
	}
}